﻿using Prism.Mvvm;

namespace IntoStationSystem.Models
{
    public class DCFanModel : BindableBase
    {
        int programNum;
        bool testOK;
        bool testNG;
        bool start;
        bool clear;
        bool stop;
        int curProgramNum;
        int gearPos;
        double duty1;
        int programNum1;
        double voltage1;
        double current1;
        double frequency1;
        double duty2;
        int programNum2;
        double voltage2;
        double current2;
        double frequency2;
        bool testOK1;
        bool testNG1;
        bool testOK2;
        bool testNG2;

        public bool TestOK
        {
            get => testOK; set => SetProperty(ref testOK, value);
        }
        public bool TestNG
        {
            get => testNG; set => SetProperty(ref testNG, value);
        }
        public bool Start
        {
            get => start; set => SetProperty(ref start, value);
        }
        public bool Clear
        {
            get => clear; set => SetProperty(ref clear, value);
        }
        public bool Stop
        {
            get => stop; set => SetProperty(ref stop, value);
        }
        public int CurProgramNum
        {
            get => curProgramNum; set => SetProperty(ref curProgramNum, value);
        }
        public int GearPos
        {
            get => gearPos; set => SetProperty(ref gearPos, value);
        }

        public int ProgramNum
        {
            get => programNum; set => SetProperty(ref programNum, value);
        }

        #region 风扇1

        public bool TestOK1
        {
            get => testOK1; set => SetProperty(ref testOK1, value);
        }
        public bool TestNG1
        {
            get => testNG1; set => SetProperty(ref testNG1, value);
        }
        public int ProgramNum1
        {
            get => programNum1; set => SetProperty(ref programNum1, value);
        }
        public double Duty1
        {
            get => duty1; set => SetProperty(ref duty1, value);
        }
        public double Voltage1
        {
            get => voltage1; set => SetProperty(ref voltage1, value);
        }
        public double Current1
        {
            get => current1; set => SetProperty(ref current1, value);
        }
        public double Frequency1
        {
            get => frequency1; set => SetProperty(ref frequency1, value);
        }
        #endregion

        #region 风扇2

        public bool TestOK2
        {
            get => testOK2; set => SetProperty(ref testOK2, value);
        }
        public bool TestNG2
        {
            get => testNG2; set => SetProperty(ref testNG2, value);
        }
        public int ProgramNum2
        {
            get => programNum2; set => SetProperty(ref programNum2, value);
        }
        public double Duty2
        {
            get => duty2; set => SetProperty(ref duty2, value);
        }
        public double Voltage2
        {
            get => voltage2; set => SetProperty(ref voltage2, value);
        }
        public double Current2
        {
            get => current2; set => SetProperty(ref current2, value);
        }
        public double Frequency2
        {
            get => frequency2; set => SetProperty(ref frequency2, value);
        }
       #endregion


    }
}
